// pages/p2/map.jsx
import { history } from "umi";
import mapImg from "@/assets/p2/map.png";
import "./map.css";

const map = () => {
	return (
		<div className="bg">
			<img src={mapImg} id="mapImg" />
			<div
				onClick={() => {
					history.push("/p1/FieldChapterScene");
				}}
			></div>
			<div
				onClick={() => {
					history.push("/p1/DeclineChapterScene");
				}}
			></div>
			<div
				onClick={() => {
					history.push("/p1/ShaoGuangChapterScene");
				}}
			></div>
			<div
				onClick={() => {
					history.push("/p2/sumi");
				}}
			></div>
			<div
				onClick={() => {
					history.push("/p2/shanggong");
				}}
			></div>
			<div
				onClick={() => {
					history.push("/p2/fangcheng");
				}}
			></div>
		</div>
	);
};

export default map;
